import Layout from '@/layout'

/**
 * 基础数据相关路由
 */
const baseRouter = {
  path: '/core',
  name: 'core',
  component: Layout,
  alwaysShow: true,
  meta: { title: '核心功能', icon: 'el-icon-office-building' },
  children: [
    {
      path: 'connect',
      name: 'connect',
      component: () => import('@/views/core/connectSecurity'),
      meta: { title: '安全连接管理', icon: 'el-icon-connection', 'pluginId': 'tools-core' }
    },
    {
      path: 'classloader',
      name: 'classloader',
      component: () => import('@/views/core/classloader'),
      meta: { title: '类加载器管理', icon: 'tree', 'pluginId': 'tools-core' }
    },
    // {
    //   path: 'plugins',
    //   name: 'plugins',
    //   component: () => import('@/views/dashboard/index'),
    //   meta: { title: '插件管理', icon: 'el-icon-ice-cream', 'pluginId': 'tools-core' }
    // },
    {
      path: 'file',
      name: 'file',
      component: () => import('@/views/core/filemanager'),
      meta: { title: '临时文件管理', icon: 'el-icon-grape', 'pluginId': 'tools-core' }
    },
    {
      path: 'randomdata',
      name: 'randomdata',
      component: () => import('@/views/core/randomdata'),
      meta: { title: '随机生成数据', icon: 'el-icon-grape', 'pluginId': 'tools-core' }
    }
  ]
}

export default baseRouter
